package com.entity;

import java.io.Serializable;
import javax.persistence.*;

import org.hibernate.annotations.GenericGenerator;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * The persistent class for the article database table.
 * 
 */
@Data
@Entity
@Table(indexes = {@Index(columnList = "userId")})
public class Article implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid2")
    @ApiModelProperty(hidden = true)
    private String id;

    private int counts;
    
    //private int thumbsCount;

    @ApiModelProperty(hidden = true)
    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "simple_content")
    private String simpleContent;

    private String title;

    private String type;

    private String userId;

}